import { reactive } from 'vue';

export const useModel = () => {
  const navBarInfo = reactive({
    data: {
      height: 0,
      statusBarHeight: 0,
      distance: 0,
      menuButtonHeight: 0,
    },
  });
  const pageCount = getCurrentPages().length;
  return { navBarInfo, pageCount };
};

export type Model = ReturnType<typeof useModel>;
